package com.mygo.designPattern.behavioral.chainOfResponsibilityPattern;

// 信息日志处理器
class InfoLogger extends Logger {
    public InfoLogger() {
        super(LogLevel.INFO);
    }

    @Override
    protected void write(String message) {
        System.out.println("Info: " + message);
    }
}

// 调试日志处理器
class DebugLogger extends Logger {
    public DebugLogger() {
        super(LogLevel.DEBUG);
    }

    @Override
    protected void write(String message) {
        System.out.println("Debug: " + message);
    }
}

// 错误日志处理器
class ErrorLogger extends Logger {
    public ErrorLogger() {
        super(LogLevel.ERROR);
    }

    @Override
    protected void write(String message) {
        System.err.println("Error: " + message);
    }
}